package com.thread.consumer;

public class Consumer implements Runnable{
    Desk desk;
    Consumer(Desk desk){
        this.desk = desk;
        System.out.println("线程创建成功");
    }
    public void run(){
        System.out.println(Thread.currentThread().getName() + "已启动");
        while(true){
            desk.getConduct();
        }
    }

}
